using System;

namespace Com.Core.Module.Abstractions;

public interface IModule
{
    /// <summary>
    /// 注册模块需要的服务
    /// </summary>
    /// <param name="services"></param>
    /// <param name="configuration"></param>
    void ConfigureServices(IServiceCollection services, IConfiguration configuration);

    /// <summary>
    /// 配置模块特定的中间件和路由
    /// </summary>
    /// <param name="app"></param>
    void Configure(IApplicationBuilder app);
}
